﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ChangePassword.aspx.cs" Inherits="WXYW.ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    修改密码
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <table width="100%">
        <tr style="height: 25px">
            <td style="width: 20%;">
            </td>
            <td style="width: 10%">
                当前密码:
            </td>
            <td style="width: 25%">
                <asp:TextBox ID="passwordTxtBox" runat="server" Width="90%" TextMode="Password"></asp:TextBox>
            </td>
            <td style="width: 5%; color: Red;">
                *
            </td>
            <td style="width: 20%;">
                <asp:RequiredFieldValidator ID="PasswordRequiredValidator" runat="server" ErrorMessage=""
                    Text="请输入您的当前密码" ControlToValidate="passwordTxtBox" ValidationGroup="PasswordValidation"></asp:RequiredFieldValidator>                
            </td>
            <td style="width: 20%;">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 20%;">
            </td>
            <td style="width: 10%">
                新密码:
            </td>
            <td style="width: 30%">
                <asp:TextBox ID="newPasswordTxtBox" runat="server" Width="90%" TextMode="Password"></asp:TextBox>
            </td>
            <td style="width: 5%; color: Red;">
                *
            </td>
            <td style="width: 20%;">
                <asp:RequiredFieldValidator ID="NewPasswordRequiredFieldValidator" runat="server" ErrorMessage=""
                    Text="请输入您的新密码" ControlToValidate="newPasswordTxtBox" ValidationGroup="PasswordValidation"></asp:RequiredFieldValidator>
            </td>
            <td style="width: 20%;">
            </td>
        </tr>
        <tr style="height: 25px">
            <td style="width: 20%;">
            </td>
            <td style="width: 10%">
                确认密码:
            </td>
            <td style="width: 30%">
                <asp:TextBox ID="repeatPasswordTxtBox" runat="server" Width="90%" TextMode="Password"></asp:TextBox>
            </td>
            <td style="width: 5%; color: Red;">
                *
            </td>
            <td style="width: 20%;">
                <%--<asp:RequiredFieldValidator ID="repeatPasswordRequiredFieldValidator" runat="server" ErrorMessage=""
                    Text="请再次输入您的新密码" ControlToValidate="repeatPasswordTxtBox" ValidationGroup="PasswordValidation"></asp:RequiredFieldValidator>--%>
                <asp:CompareValidator ID="PasswordCompareValidator" runat="server" 
                    ErrorMessage="您两次输入的密码不同，请确认您的新密码输入正确。" ControlToValidate="repeatPasswordTxtBox" ControlToCompare="newPasswordTxtBox" ValidationGroup="PasswordValidation"></asp:CompareValidator>
            </td>
            <td style="width: 20%;">
            </td>
        </tr>
        <tr style="height: 25px; text-align:center">
            <td></td>
            <td colspan="4">
                <asp:Button ID="OKBtn" runat="server" Text="确认" Width="80px" 
                    onclick="OKBtn_Click" ValidationGroup="PasswordValidation" />
            </td>
            <td></td>
        </tr>
        <tr style="height: 25px">
            <td></td>
            <td colspan="4">
                <asp:Label ID="MsgLbl" runat="server" ForeColor="Red" />
            </td>
            <td></td>
        </tr>
    </table>
</asp:Content>
